<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>soundouts</title>
    <link rel="stylesheet" type="text/css" href="csound.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" />
    <link rel="up" href="DeprecatedTop.html" title="Deprecated Orchestra Opcodes and GEN Routines" />
    <link rel="prev" href="soundout.html" title="soundout" />
    <link rel="next" href="stack.html" title="stack" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">soundouts</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="soundout.html">Prev</a> </td>
          <th width="60%" align="center">Deprecated Orchestra Opcodes and GEN Routines</th>
          <td width="20%" align="right"> <a accesskey="n" href="stack.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry">
      <a id="soundouts"></a>
      <div class="titlepage"></div>
      <a id="IndexSoundouts" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">soundouts</span>
        </h2>
        <p>soundouts — 
      Deprecated. Writes audio output to a disk file.
    </p>
      </div>
      <div class="refsect1">
        <a id="idp220945904"></a>
        <h2>Description</h2>
        <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
          <table border="0" summary="Note">
            <tr>
              <td rowspan="2" align="center" valign="top" width="25">
                <img alt="[Note]" src="images/note.png" />
              </td>
              <th align="left">Note</th>
            </tr>
            <tr>
              <td align="left" valign="top">
                <p>The usage of <span class="emphasis"><em>soundouts</em></span> is discouraged. Please use  <a class="link" href="fout.html" title="fout"><em class="citetitle">fout</em></a> instead.</p>
              </td>
            </tr>
          </table>
        </div>
        <p>
      Writes audio output to a disk file.
    </p>
      </div>
      <div class="refsect1">
        <a id="idp220949344"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>soundouts</strong></span>  asigl, asigr, ifilcod [, iformat]</pre>
      </div>
      <div class="refsect1">
        <a id="idp220951408"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>ifilcod</em></span> -- integer or character-string denoting the
      destination soundfile name. An integer denotes the file soundout.ifilcod;
      a character-string (in double quotes, spaces permitted) gives the
      filename itself, optionally a full pathname. If not a full path, the
      named file is written relative to the directory given by the SFDIR
      environment variable if defined, or the current directory.
      See also <a class="link" href="GEN01.html" title="GEN01"><em class="citetitle">GEN01</em></a>.
    </p>
        <p>
      <span class="emphasis"><em>iformat</em></span> (optional, default=0) -- specifies the audio data file format:
      </p>
        <div class="itemizedlist">
          <ul class="itemizedlist" style="list-style-type: disc; ">
            <li class="listitem">
              <p>1 = 8-bit signed char (high-order 8 bits of a 16-bit integer)</p>
            </li>
            <li class="listitem">
              <p>4 = 16-bit short integers</p>
            </li>
            <li class="listitem">
              <p>5 = 32-bit long integers</p>
            </li>
            <li class="listitem">
              <p>6 = 32-bit floats</p>
            </li>
          </ul>
        </div>
        <p>
    </p>
        <p>
      If <span class="emphasis"><em>iformat</em></span> = 0 it is taken from the Csound <a class="link" href="CommandFlags.html#FlagsMinusLowerO"><em class="citetitle">-o</em></a> command-line flag. The default value is 0.
    </p>
      </div>
      <div class="refsect1">
        <a id="idp220961296"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>soundouts</em></span> writes stereo audio output to a disk file
      in raw (headerless) format without 0dBFS scaling. The expected range of
      the audio signals depends on the selected sample format.
    </p>
        <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
          <table border="0" summary="Note">
            <tr>
              <td rowspan="2" align="center" valign="top" width="25">
                <img alt="[Note]" src="images/note.png" />
              </td>
              <th align="left">Note</th>
            </tr>
            <tr>
              <td align="left" valign="top">
                <p>Use of <a class="link" href="fout.html" title="fout"><em class="citetitle">fout</em></a> is recommended instead of <span class="emphasis"><em>soundouts</em></span></p>
              </td>
            </tr>
          </table>
        </div>
      </div>
      <div class="refsect1">
        <a id="idp220965136"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="out.html" title="out"><em class="citetitle">out</em></a>,
      <a class="link" href="outh.html" title="outh"><em class="citetitle">outh</em></a>,
      <a class="link" href="outo.html" title="outo"><em class="citetitle">outo</em></a>,
      <a class="link" href="outq.html" title="outq"><em class="citetitle">outq</em></a>,
      <a class="link" href="outq1.html" title="outq1"><em class="citetitle">outq1</em></a>,
      <a class="link" href="outq2.html" title="outq2"><em class="citetitle">outq2</em></a>,
      <a class="link" href="outq3.html" title="outq3"><em class="citetitle">outq3</em></a>,
      <a class="link" href="outq4.html" title="outq4"><em class="citetitle">outq4</em></a>,
      <a class="link" href="outs.html" title="outs"><em class="citetitle">outs</em></a>,
      <a class="link" href="outs1.html" title="outs1"><em class="citetitle">outs1</em></a>,
      <a class="link" href="outs2.html" title="outs2"><em class="citetitle">outs2</em></a>
      <a class="link" href="soundout.html" title="soundout"><em class="citetitle">soundout</em></a>
    </p>
      </div>
      <div class="refsect1">
        <a id="idp220977712"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: Istvan Varga</td>
          </tr>
        </table>
        <p>
    </p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="soundout.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="DeprecatedTop.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="stack.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">soundout </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> stack</td>
        </tr>
      </table>
    </div>
  </body>
</html>
